package com.david.auth.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 关系表基础类
 */
@ApiModel(description = "关系实体基础类")
public class RelationBaseEntity implements Serializable {
    /** ID */
    @ApiModelProperty(notes = "ID", example = "uuid-32", position = -99)
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    private String id;
    /** 创建时间 */
    @ApiModelProperty(notes = "创建时间", example = "2022-03-28 :09:30:00", position = -98)
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;
    /** 创建者 */
    @ApiModelProperty(notes = "创建者", example = "username", position = -97)
    @TableField(fill = FieldFill.INSERT)
    private String create_by;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getCreate_by() {
        return create_by;
    }

    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }
}
